<?php
my_component_load('testing' , false);
my_component_load('paging' , false);  
my_component_load('alamat' );
$task = isset($_GET['task']) ? $_GET['task'] : "";  
$id = isset( $_GET['id'] ) ? $_GET['id']:  0; 	
$_SESSION['tab_page'] = '#tab7';
if($_SERVER['REQUEST_METHOD'] == "POST" ){
	  form_alamat_submit($id);
	  $content = "Updated";
	generate_my_web($content, $pagename ,'plain.php' ); 
}else{
if($task == "edit"){ 

	$content = alamat_edit($id);
	generate_my_web($content, $pagename ,'plain.php' ); 
}else{
	
	$title=  "Ganti alamat detail" ;
	facebox_page('index.php?com=alamat&task=edit&kid='.$_GET['kid'].'&id='.$id  , $title , 440	); 
}
}